package cn.wsalix.shop.status;


public enum PayEnum {
	unPay("1", "未支付"),payed("2", "已支付"),payBack("3", "申请退款"),payBacked("4", "已退款");
	private String code;
	private String title;

	PayEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static PayEnum findByCode(String code) {
		for (PayEnum type : PayEnum.values()) {
			if (type.getCode().equals(code)) {
				return type;
			}
		}
		return null;
	}

}
